/**@file
 * @brief entity.h实现
 * @see entity.h
 * @author 朱项男<libxiangnan@gmail.com>
 * @date 2011/11/24
 * @version 0.0.1
 * */

#include <string>

#include "entity.h"

using namespace std;

namespace dat {

//! @brief 构造函数
Entity::Entity() :
		id(""), name(""), author(""), state(NOT_RUN), remarks("") {
	;
}

//! @brief 虚析构函数
Entity::~Entity() {
	;
}

//! @brief id Setter
//! @param[in] id ID标识
void Entity::setId(const std::string &id) {
	this->id = id;
}

//! @brief id Getter
//! @return ID标识
std::string Entity::getId() {
	return this->id;
}

//! @brief name Setter
//! @param[in] name 实体名称
void Entity::setName(const std::string &name) {
	this->name = name;
}

//! @brief name Getter
//! @return 实体名称
std::string Entity::getName() {
	return this->name;
}

//! @brief fulpath Setter
//! @param[in] fulpath 实体全路径
void Entity::setFulpath(const std::string &fulpath) {
	this->fulpath = fulpath;
}

//! @brief fulpath Getter
//! @return 实体全路径
std::string Entity::getFulpath() {
	return this->fulpath;
}

//! @brief author Setter
//! @param[in] author 作者名
void Entity::setAuthor(const std::string &author) {
	this->author = author;
}

//! @brief author Getter
//! @return 作者名称
std::string Entity::getAuthor() {
	return this->author;
}

//! @brief state Setter
//! @param[in] state 实体状态
void Entity::setState(EntityState state) {
	this->state = state;
}

//! @brief state Getter
//! @return 实体状态
EntityState Entity::getState() {
	return this->state;
}

//! @brief remarks Getter访问器
//! @return 备注信息
std::string Entity::getRemarks() {
	return this->remarks;
}

//! @brief remarks Setter访问器
//! @param[in] remarks 备注信息
void Entity::setRemarks(const std::string &remarks) {
	this->remarks = remarks;
}

} /* namespace dat */
